package com.jeeplus.test.jlnu.xlsxManage.service;


import com.jeeplus.test.jlnu.xlsxManage.domain.entity.JlnuXlsxManage;
import com.jeeplus.test.jlnu.xlsxManage.domain.query.XlsxManagePageQuery;
import com.jeeplus.test.jlnu.xlsxManage.domain.query.XlsxManageQuery;
import com.jeeplus.test.sysTemplate.domain.FieldInfo;
import org.springframework.core.io.Resource;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 动态表头(JlnuXlsxManage)表服务接口
 *
 * @author ChiHongYu
 * @since 2025-02-17 15:16:37
 */
public interface JlnuXlsxManageService {


    JlnuXlsxManage queryById(Integer id);

    JlnuXlsxManage queryByType(String type,String officeId);

    JlnuXlsxManage getByOffice(String officeId,
                               String type,
                               String name);

    boolean insertOrUpdate(XlsxManageQuery param);


    boolean update(JlnuXlsxManage jlnuXlsxManage);


    boolean deleteById(Integer id);


    boolean changeUseById(Integer id, String useState);


    HashMap<String, Object> page(XlsxManagePageQuery param, int[] page);


    HashMap<String, Object> getList(XlsxManagePageQuery param);


    Resource customizeTemplate(Integer id);

    Resource rowCustomizeTemplate(Integer id);

    List<FieldInfo> queryObjectById(Integer id);

}
